@echo off 
echo copy binary file

COPY ..\EWARM\demo\Exe\demo.bin .
REM ren *.bin demo-%date:~0,4%%date:~5,2%%date:~8,2%.bin

set yy=%date:~0,4%
set mm=%date:~5,2%
set dd=%date:~8,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set ss=%time:~6,2%
ren demo.bin demo-%yy%%mm%%dd%%hh%%mn%%ss%.bin
REM set filename=%yy%%mm%%dd%%hh%%mn%%ss%.txt
pause

